﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2._18._2015_MoviesInClass.Data.Models
{
    public abstract class AuditObject
    {
        public DateTime? DateCreated { get; set; }    
    
        public string CreatedById { get; set; }
        [ForeignKey("CreatedById")]
        public virtual User CreatedBy { get; set; }

        public DateTime? DateUpdated { get; set; }

        public string UpdatedById { get; set; }
        [ForeignKey("UpdatedById")]
        public virtual User UpdatedBy { get; set; }

        public bool? IsDeleted { get; set; }

    }
}
